<?xml version="1.0" encoding="UTF-8"?>
<ui:composition   xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:h="http://java.sun.com/jsf/html"
                  xmlns:ui="http://java.sun.com/jsf/facelets"
                  xmlns:p="http://primefaces.prime.com.tr/ui"
                  xmlns:f="http://java.sun.com/jsf/core">     
        <h:form id ="rightMenu" >
            <p:menu style="width:11em" styleClass="box-shadow">  
                <p:submenu label="Menu">
                    <p:menuitem value="Home Page" ajax="false" action="#{RightMenuControllerBean.navigateToHomePage}"/>
                    <p:menuitem value="Login" ajax="false" action="#{RightMenuControllerBean.navigateToLogin}" />
                    <p:menuitem value="Logout" ajax="false" actionListener="#{RightMenuControllerBean.logOut}" action="#{RightMenuControllerBean.navigateToHomePage}"/> 
                    <p:menuitem value="View Cart" ajax="false" action="#{RightMenuControllerBean.navigateToViewCart}"/>
                </p:submenu>
            </p:menu>
        </h:form>
        <p:panel id="cartPanel" header="Cart"  styleClass="box-shadow">
            <h:outputLabel value="Items:" /><h:outputLabel styleClass="rightMenuCartValue" value="#{RightMenuControllerBean.menuBackingBean.count} qty" /><br />
            <h:outputLabel value="Price"/><h:outputLabel styleClass="rightMenuCartValue" value="#{RightMenuBackingBean.totalCost} kr" /><br />
            <h:outputLabel value="Shipping:"/><h:outputLabel styleClass="rightMenuCartValue" value="#{RightMenuBackingBean.shippingCost} kr" /><br />
            <p:separator />
            <h:outputLabel value="Total price:"/><h:outputLabel styleClass="rightMenuCartValue" value="#{RightMenuBackingBean.totCostIncShipping} kr" /><br />
        </p:panel>
</ui:composition>   